package com.huang.consumer_mall.service;


import com.huang.consumer_mall.dao.OrdersDao;
import com.huang.consumer_mall.model.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersService extends BaseService<OrdersDao, Orders> {
    @Autowired
    protected  OrdersDao ordersDao;
    public List<Orders> getOrders(Orders orders){
        return ordersDao.getOrders(orders);
    }

    public Integer getOrderId(){
        return ordersDao.getOrderId();
    }
}
